package com.hr.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hr.common.annotation.Excel;
import com.hr.common.core.domain.BaseEntity;

/**
 * 请假对象 sys_leave
 * 
 * @author ruoyi
 * @date 2021-03-16
 */
public class SysLeave extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 请假单编号 */
    private Long leaveId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 所属组织 */
    @Excel(name = "部门编号")
    private Integer deptId;

    /** 所属组织 */
    @Excel(name = "所属组织")
    private String belongOrganization;

    /** 请假类型 */
    @Excel(name = "请假类型")
    private Integer leaveType;

    /** 请假开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "请假开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date startTime;

    /** 请假结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "请假结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date endTime;

    /** 请假长度 */
    @Excel(name = "请假长度")
    private BigDecimal leaveDays;

    /** 请假说明 */
    @Excel(name = "请假说明")
    private String leaveDetail;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String fujianAddress;

    /** 请假审批状态 */
    @Excel(name = "请假审批状态")
    private Integer leaveStatus;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public void setLeaveId(Long leaveId)
    {
        this.leaveId = leaveId;
    }

    public Long getLeaveId() 
    {
        return leaveId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBelongOrganization(String belongOrganization) 
    {
        this.belongOrganization = belongOrganization;
    }

    public String getBelongOrganization() 
    {
        return belongOrganization;
    }
    public void setLeaveType(Integer leaveType) 
    {
        this.leaveType = leaveType;
    }

    public Integer getLeaveType() 
    {
        return leaveType;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setLeaveDetail(String leaveDetail)
    {
        this.leaveDetail = leaveDetail;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public BigDecimal getLeaveDays() {
        return leaveDays;
    }

    public void setLeaveDays(BigDecimal leaveDays) {
        this.leaveDays = leaveDays;
    }

    public String getLeaveDetail()
    {
        return leaveDetail;
    }
    public void setFujianAddress(String fujianAddress)
    {
        this.fujianAddress = fujianAddress;
    }

    public String getFujianAddress()
    {
        return fujianAddress;
    }
    public void setLeaveStatus(Integer leaveStatus)
    {
        this.leaveStatus = leaveStatus;
    }

    public Integer getLeaveStatus()
    {
        return leaveStatus;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("leaveId", getLeaveId())
            .append("name", getName())
            .append("deptId", getDeptId())
            .append("belongOrganization", getBelongOrganization())
            .append("leaveType", getLeaveType())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("leaveDays", getLeaveDays())
            .append("leaveDetail", getLeaveDetail())
            .append("fujianAddress", getFujianAddress())
            .append("createTime", getCreateTime())
            .append("leaveStatus", getLeaveStatus())
            .append("userId", getUserId())
            .append("tenantId", getTenantId())
            .toString();
    }
}
